package com.xjk.shiro.mappers;

import com.xjk.shiro.entity.Permission;
import com.xjk.shiro.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: XJK
 */
@Mapper
public interface PermissionMapper {

    //根据角色id查询权限集合
    Role findPermissionsToRoleByRoleId(@Param("role_id") Integer id);
    //根据角色id查询权限集合
    List<Permission> findPermissionsByRoleId(@Param("role_id") Integer id);

}
